import fly from '@/utils/request'

function restartContainer (param) {
  return fly.get('docker/dockerapi/restartContainer', param)
}

function startContainer (param) {
  return fly.get('docker/dockerapi/startContainer', param)
}

function stopContainer (param) {
  return fly.get('docker/dockerapi/stopContainer', param)
}

function getContainers (param) {
  return fly.get('docker/dockerapi/getContainers', param)
}

function getImages (param) {
  return fly.get('docker/dockerapi/getImages', param)
}

function create (param) {
  return fly.post('docker/docker/create', param)
}

function id () {
  return fly.get('docker/id')
}

export default {
  restartContainer,
  startContainer,
  stopContainer,
  getContainers,
  getImages,
  create,
  id
}
